import React from "react";
import Link from "next/link";
import {Box, Button, Group, Stack} from "@mantine/core";
import {IconChevronLeft} from "@tabler/icons-react";

export default function Layout({children}: {children: React.ReactNode}) {
  return (
    <Stack p="sm">
      <Group justify="space-between">
        <Button
          component={Link}
          href="/ipdv2/tools/relay-simulation/detail"
          variant="transparent"
          color="violet"
          size="sm"
          leftSection={<IconChevronLeft size={18} />}
        >
          返回基础数据入口
        </Button>
      </Group>

      <Box>{children}</Box>
    </Stack>
  );
}
